//
//  FQDSettingOption.h
//  FakeQDaily
//
//  Created by mewxiv on 9/9/16.
//  Copyright © 2016 Xensius. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void (^FQDSettingOptionSelectBlock)(void);

@interface FQDSettingOption : NSObject

@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *detail;
@property (nonatomic, strong) NSString *icon;
@property (nonatomic, assign) Class cellClass;
// 用于标记是否有更多详细信息，如果有更多，对应的单元格会显示右箭头，默认为YES
@property (nonatomic, assign) BOOL hasMore;
@property (nonatomic, copy) FQDSettingOptionSelectBlock selectionBlock;
// 选项的值
@property (nonatomic, strong) id value;

+ (instancetype)optionWithTitle:(NSString *)title;
+ (instancetype)optionWithTitle:(NSString *)title cellClass:(Class)cellCalss;
- (instancetype)initWithCellClass:(Class)cellClass;
- (instancetype)initWithTitle:(NSString *)title cellClass:(Class)cellClass NS_DESIGNATED_INITIALIZER;
- (void)setSelectionBlock:(FQDSettingOptionSelectBlock)selectionBlock;

@end
